#ifndef YLIBRARY_H
#define YLIBRARY_H

#if defined(__linux__) || defined(__linux)
#define Y_LIBRARY_EXPORT
#define Y_LIBRARY_IMPORT
#else
#define Y_LIBRARY_EXPORT __declspec(dllexport)
#define Y_LIBRARY_IMPORT __declspec(dllimport)
#endif

#ifdef Y_LIBRARY
#define Y_IO_DLL Y_LIBRARY_EXPORT
#else
#define Y_IO_DLL Y_LIBRARY_IMPORT
#endif

class QWidget;
class QVariant;

#ifdef __cplusplus
extern "C" {
#endif

Y_LIBRARY_EXPORT QWidget* Create(QVariant* argv = nullptr);

#ifdef __cplusplus
}
#endif


#endif // YLIBRARY_H
